from app.services.db import insert


def insert_announcements_to_db(announcement: dict):
    result = insert("announcements", {
        "event_date": announcement["date"],
        "channel_id": announcement["channel_id"],
        "post_text": announcement["text"],
        "posted_by": announcement["posted_by"]
    })
    print(result)
